﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ARR.Services.Domain;
using ARR.Entities;

namespace ARR.Services
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "AttributesService" in both code and config file together.
    public class AttributesService : IAttributesService
    {
        public List<AttributeType> GetAllTypes()
        {
            return AttributesDomain.GetAllTypes();
        }

        public List<Entities.Attribute> GetValuesForAttribute(int attributeTypeId)
        {
            return AttributesDomain.GetValuesForAttribute(attributeTypeId);
        }

        public List<AttributeType> GetAllTypesWithValues()
        {
            return AttributesDomain.GetAllTypesWithValues();
        }
        
        public void Save(List<AttributeType> attributeTypes)
        {
            AttributesDomain.Save(attributeTypes);
        }
    }
}
